//
//  KLSGRankingListCell.m
//  KaoLaShiGuangFM
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "KLSGRankingListCell.h"

@implementation KLSGRankingListCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addSubViews];
    }
    return self;
}

- (void)addSubViews
{
    self.coverPathImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 70, 70)];
//    self.coverPathImageView.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:self.coverPathImageView];
    
    self.titleLable = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.coverPathImageView.frame) + 10, 5, kScreenWidth / 2, 40)];
//        self.titleLable.backgroundColor = [UIColor yellowColor];
    self.titleLable.font = [UIFont systemFontOfSize:18];
    [self.contentView addSubview:self.titleLable];
    
    self.firstTitleLable = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.coverPathImageView.frame) + 10, CGRectGetMaxY(self.titleLable.frame) - 5, kScreenWidth / 2, 25)];
    self.firstTitleLable.alpha = kAlpha;
    //self.firstTitleLable.backgroundColor = [UIColor yellowColor];
    self.firstTitleLable.font = [UIFont systemFontOfSize:13];
    [self.contentView addSubview:self.firstTitleLable];
    
    self.twoTitleLable = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.coverPathImageView.frame) + 10, CGRectGetMaxY(self.firstTitleLable.frame) - 5, kScreenWidth / 2, 25)];
    self.twoTitleLable.alpha = kAlpha;
    //self.twoTitleLable.backgroundColor = [UIColor yellowColor];
    self.twoTitleLable.font = [UIFont systemFontOfSize:13];
    [self.contentView addSubview:self.twoTitleLable];
    
    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.coverPathImageView.frame) + 10, 89, kScreenWidth - 90, 1)];
    lineView.backgroundColor = [UIColor lightGrayColor];
    [self.contentView addSubview:lineView];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
